function validate_required(field,alerttxt)
{
with (field)
  {
  if (value==null||value=="0")
    {
    alert(alerttxt);return false;
    }
  else
    {
    return true;
    }
  }
}

function validate_form(thisform)
{
with (thisform)
  {
  if (validate_required(project_id,"Select a Project")==false)
  {project_id.focus();return false;}
  }
}